Platform Explorer / Nuxeo Platform 11.3

Component org.nuxeo.ecm.platform.actions

Resolution Order

631
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.actions">

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <!-- server actions -->

    <action id="documents" link="view_documents" label="label.main.tab.documents"
      order="40" type="main_tab">
      <category>MAIN_TABS</category>
      <properties>
        <property name="requireDocument">true</property>
      </properties>
    </action>

    <action id="non_anonymous_logout" link="logout" label="command.logout"
      order="100" type="bare_link">
      <category>USER_MENU_ACTIONS</category>
      <filter-id>not_anonymous</filter-id>
    </action>

    <action id="login" link="logout" label="command.login" order="100"
      type="bare_link">
      <category>USER_MENU_ACTIONS</category>
      <filter-id>anonymous</filter-id>
    </action>

    <action id="newDomain" link="#{documentActions.createDocument('Domain')}"
      label="command.create.domain" icon="/icons/action_add.gif">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newDomain">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>Root</type>
        </rule>
      </filter>
    </action>

    <!-- domain and roots actions -->

    <action id="newWorkspace" link="#{documentActions.createDocument('Workspace')}"
      label="command.create.workspace" icon="/icons/action_add.gif">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newWorkspace">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>WorkspaceRoot</type>
        </rule>
      </filter>
    </action>

    <action id="newWorkspaceWithWizard" link="create_workspace_wizard"
      enabled="false" label="command.create.workspace.wizard" icon="/icons/action_add.gif">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newWorkspaceWizard">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>WorkspaceRoot</type>
        </rule>
      </filter>
    </action>

    <action id="newSection" link="#{documentActions.createDocument('Section')}"
      label="command.create.section" icon="/icons/action_add.gif">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newSection">
        <rule grant="true">
          <permission>AddChildren</permission>
          <type>SectionRoot</type>
        </rule>
      </filter>
    </action>

    <!-- generic actions -->

    <action id="newDocument" label="action.new.document" icon="/icons/action_add.gif"
      type="fancybox">
      <category>SUBVIEW_UPPER_LIST</category>
      <properties>
        <property name="include">/select_document_type.xhtml</property>
      </properties>
      <filter-id>create</filter-id>
    </action>

    <!-- disabled by default, see NXP-15369 -->
    <action id="newFile" enabled="false" label="action.new.file" icon="/icons/action_add_file.gif"
      type="fancybox">
      <category>SUBVIEW_UPPER_LIST</category>
      <properties>
        <property name="include">/create_file.xhtml</property>
      </properties>
      <filter-id>importFile</filter-id>
    </action>

    <!--
      tabs are handled by a specific template so links should be paths to
      template to include in the tab content
    -->
    <action id="TAB_MANAGE" type="rest_document_link" order="240"
      label="action.view.manage" icon="/icons/file.gif" accessKey="m">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>manage</filter-id>
      <filter id="TAB_MANAGE_has_subtabs">
        <rule grant="false">
          <condition>
            #{webActions.getActionsList('TAB_MANAGE_sub_tab').isEmpty()}
          </condition>
        </rule>
      </filter>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="link">/incl/tabs/document_manage.xhtml</property>
      </properties>
    </action>

    <action id="TAB_PERMISSIONS" link="/permissions/document_permissions.xhtml"
      order="50" label="action.view.permissions" icon="/icons/file.gif">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>isNotVersion</filter-id>
      <properties>
        <!-- NXP-18320: disable ajax support on Polymer tabs -->
        <property name="ajaxSupport">false</property>
      </properties>
    </action>

    <action id="TAB_VIEW" link="/incl/tabs/document_view.xhtml" order="0"
      label="action.view.summary" icon="/icons/file.gif" accessKey="v"
      type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="TAB_CONTENT" link="/incl/tabs/document_content.xhtml"
      order="10" label="action.view.content" icon="/icons/file.gif" accessKey="c"
      type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <!--
        NXP-12715: use same tab on workspaces and sections
      -->
      <!--
        <filter-id>outSection</filter-id>
      -->
      <filter-id>view_content</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <!--
      NXP-12715: use same tab on workspaces and sections => disable this action
      by default
    -->
    <action id="TAB_SECTION_CONTENT" link="/incl/tabs/section_content.xhtml"
      order="10" label="action.view.content" icon="/icons/file.gif" enabled="false"
      type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_content</filter-id>
      <filter-id>inSection</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="TAB_TRASH_CONTENT" link="/incl/tabs/document_trash_content.xhtml"
      order="200" label="action.view.trash.content" icon="/icons/file.gif">
      <category>TAB_MANAGE_sub_tab</category>
      <filter id="viewTrash">
        <rule grant="true">
          <permission>Manage everything</permission>
          <facet>Folderish</facet>
          <condition>#{deleteActions.trashManagementEnabled}</condition>
        </rule>
      </filter>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="print" link="#{restHelper.doPrint(themeActions.defaultTheme)}"
      order="100" label="label.print" icon="/icons/printer.gif" accesskey="p">
      <category>DOCUMENT_UPPER_ACTION_BLANK_TARGET</category>
    </action>

    <action id="TAB_EDIT" link="/incl/tabs/document_edit.xhtml" order="20"
      label="action.view.modification" icon="/icons/file.gif" accessKey="e"
      type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>edit</filter-id>
      <filter-id>mutable_document</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="TAB_WORKSPACE_EDIT" link="/incl/tabs/document_edit.xhtml"
      order="22" label="action.view.modification" icon="/icons/file.gif"
      accessKey="e" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>workspace_edit</filter-id>
      <filter-id>mutable_document</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="TAB_FILES_EDIT" link="/incl/tabs/document_files_edit.xhtml"
      order="43" label="action.view.files" accessKey="f" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>edit</filter-id>
      <filter-id>mutable_document</filter-id>
      <filter-id>hasAttachedFiles</filter-id>
      <filter-id>denyFilesTab</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="TAB_RIGHTS" link="/incl/tabs/document_rights.xhtml"
      order="50" label="action.view.rights" icon="/icons/file.gif"
      enabled="false">
      <category>TAB_MANAGE_sub_tab</category>
      <filter-id>rights</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <!-- Manage the sub tabs -->

    <!-- Actions on WorkLists -->

    <action id="WORKLIST_PASTE" link="#{clipboardActions.pasteWorkingList}"
      label="command.clipboard.pasteAll" icon="/icons/action_paste_all.gif">
      <category>DEFAULT_LIST</category>
      <category>CLIPBOARD_LIST</category>
      <filter-id>canPasteCurrentWorkList</filter-id>
    </action>

    <action id="WORKLIST_MOVE" link="#{clipboardActions.moveWorkingList}"
      label="command.clipboard.moveAll" icon="/icons/action_move_all.gif">
      <category>DEFAULT_LIST</category>
      <category>CLIPBOARD_LIST</category>
      <filter-id>canMoveWorkingList</filter-id>
    </action>

    <action id="WORKLIST_EXPORT" link="#{clipboardActions.exportWorklistAsZip()}"
      label="command.clipboard.zipExport" icon="/icons/action_export_zip.gif">
      <category>DEFAULT_LIST</category>
      <filter id="currentWorkListIsNotEmpty2">
        <rule grant="false">
          <condition>#{clipboardActions.workListEmpty}</condition>
        </rule>
      </filter>
    </action>

    <action id="WORKLIST_CLEAN" link="#{clipboardActions.clearWorkingList()}"
      label="command.clipboard.delAll" icon="/icons/action_clipboard_deleteall.gif">
      <category>DEFAULT_LIST</category>
      <category>CLIPBOARD_LIST</category>
      <filter id="currentWorkListIsNotEmpty3">
        <rule grant="false">
          <condition>#{clipboardActions.workListEmpty}</condition>
        </rule>
      </filter>
    </action>

    <!-- Actions for the document selection -->

    <action id="CLIPBOARD_PASTE" link="#{clipboardActions.pasteClipboard}"
      label="command.clipboard.paste" icon="" order="20">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter id="canPastFromClipboard">
        <rule grant="true">
          <condition>#{clipboardActions.canPasteFromClipboard}</condition>
        </rule>
      </filter>
    </action>

    <action id="CURRENT_SELECTION_DELETE" link="#{deleteActions.purgeSelection}"
      label="command.deleteDocs" icon="" help="command.deleteDocs.help"
      confirm="if( !confirmDeleteDocumentsForever() ) return false;">
      <category>CURRENT_SELECTION_TRASH_LIST</category>
      <filter id="canPurge">
        <rule grant="true">
          <condition>#{deleteActions.canPurge}</condition>
        </rule>
      </filter>
    </action>

    <action id="CURRENT_SELECTION_EMPTY_TRASH" link="#{deleteActions.emptyTrash}"
      label="command.emptyTrash" icon="" help="command.emptyTrash.help"
      confirm="if( !confirmEmptyTrash() ) return false;">
      <category>CURRENT_SELECTION_TRASH_LIST</category>
      <filter id="canEmptyTrash">
        <rule grant="true">
          <condition>#{deleteActions.canEmptyTrash}</condition>
        </rule>
      </filter>
    </action>

    <action id="CURRENT_SELECTION_UNDELETE" link="#{deleteActions.undeleteSelection}"
      label="command.undeleteDocs" icon="" help="command.undeleteDocs.help"
      confirm="if( !confirmUndeleteDocuments() ) return false;">
      <category>CURRENT_SELECTION_TRASH_LIST</category>
      <filter id="canPurge" />
    </action>

    <action id="CURRENT_SELECTION_TRASH" link="#{deleteActions.deleteSelection}"
      label="command.trashDocs" icon="" help="command.trashDocs.help"
      confirm="if( !confirmDeleteDocuments() ) return false;" order="1000">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter id="canDelete">
        <rule grant="true">
          <condition>#{deleteActions.canDelete}</condition>
        </rule>
      </filter>
    </action>

    <action id="CURRENT_SELECTION_EDIT" type="fancybox" label="command.bulk.edit"
      icon="" order="0">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canEditCurrentSelection</filter-id>
      <properties>
        <property name="include">/incl/bulk_edit_box.xhtml</property>
        <property name="layout">bulkEdit@edit</property>
        <property name="autoDimensions">false</property>
        <property name="width">50%</property>
        <property name="height">70%</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="CURRENT_SELECTION_COPY" link="#{clipboardActions.putSelectionInClipboard}"
      label="command.clipboard.copy" icon="" order="10">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canCopyFromCurrentSelection</filter-id>
    </action>

    <action id="CURRENT_SELECTION_ADDTOLIST" link="#{clipboardActions.putSelectionInDefaultWorkList}"
      label="help.command.clipboard.addworklist" icon="" order="30">
      <category>CURRENT_SELECTION_LIST</category>
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canCopyFromCurrentSelection</filter-id>
      <filter id="no_addtolist_for_domains">
        <rule grant="false">
          <type>Root</type>
        </rule>
      </filter>
    </action>

    <action id="MOVE_TOP" link="#{orderableDocumentActions.moveToTop}"
      enabled="true" label="command.order.movetotop" icon="" order="200">
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canMoveToTop</filter-id>
    </action>

    <action id="MOVE_UP" link="#{orderableDocumentActions.moveUp}"
      enabled="true" label="command.order.moveup" icon="" order="250">
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canMoveUp</filter-id>
    </action>

    <action id="MOVE_DOWN" link="#{orderableDocumentActions.moveDown}"
      enabled="true" label="command.order.movedown" icon="" order="300">
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canMoveDown</filter-id>
    </action>

    <action id="MOVE_BOTTOM" link="#{orderableDocumentActions.moveToBottom}"
      enabled="true" label="command.order.movetobottom" icon="" order="350">
      <category>ORDERABLE_CURRENT_SELECTION_LIST</category>
      <filter-id>canMoveToBottom</filter-id>
    </action>

    <action id="CURRENT_SELECTION_SECTIONS_TRASH" link="#{deleteActions.deleteSelectionSections}"
      label="command.trashDocs" icon="" help="command.trashDocs.help"
      confirm="if( !confirmDeleteDocuments() ) return false;">
      <category>CURRENT_SELECTION_SECTIONS_LIST</category>
      <filter id="canDeleteSection">
        <rule grant="true">
          <condition>#{deleteActions.canDeleteSections}</condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_VIEW" link="javascript:doView" label="command.view"
      icon="/icons/view_doc.png">
      <category>POPUP</category>
    </action>

    <action id="POPUP_EDIT" link="javascript:doEdit" label="action.view.edit"
      icon="/icons/application_form_edit.png">
      <category>POPUP</category>
      <filter-id>user_canedit</filter-id>
      <filter-id>mutable_document</filter-id>
    </action>

    <action id="POPUP_COPY" link="javascript:doCopy" label="command.clipboard.copy"
      icon="/icons/action_clipboard_copy.gif">
      <category>POPUP</category>
    </action>

    <action id="POPUP_PASTE" link="javascript:doPaste" label="command.clipboard.paste"
      icon="/icons/action_paste_all.gif">
      <category>POPUP</category>
      <filter id="canPastePopup">
        <rule grant="true">
          <condition>
            #{clipboardActions.getCanPasteFromClipboardInside(document)}
          </condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_MOVE" link="javascript:doMove" label="command.clipboard.moveAll"
      icon="/icons/action_move_all.gif">
      <category>POPUP</category>
      <filter id="canPastePopup">
        <rule grant="true">
          <condition>
            #{clipboardActions.getCanMoveFromClipboardInside(document)}
          </condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_RENAME" link="javascript:doRename" label="command.rename"
      icon="/icons/rename.png">
      <category>POPUP</category>
      <filter-id>user_canedit</filter-id>
      <filter-id>mutable_document</filter-id>
      <filter id="canRenamePopup">
        <rule grant="true">
          <condition>#{popupHelper.isCurrentContainerDirectParent}</condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_DEL" link="javascript:doDelete" label="command.trashDocs"
      icon="/icons/delete_red.png">
      <category>POPUP</category>
      <filter id="canDeletePopup">
        <rule grant="true">
          <condition>#{deleteActions.getCanDeleteItem(container)}</condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_RIGHTS" link="javascript:doAccessRights" order="10"
      label="action.view.rights" icon="/icons/group.png">
      <category>POPUP</category>
      <filter-id>rights</filter-id>
    </action>

    <action id="POPUP_DOWNLOAD" link="javascript:doDownload" order="70"
      label="command.download" icon="/icons/icone_download.gif">
      <category>POPUP</category>
      <filter id="hasContent">
        <rule grant="true">
          <schema>file</schema>
        </rule>
      </filter>
      <filter id="documentHasBlobAttached">
        <rule grant="true">
          <condition>
            #{popupHelper.isDocumentHasBlobAttached(document)}
          </condition>
        </rule>
      </filter>
    </action>

    <action id="POPUP_WORKFLOW" link="javascript:doWorkflow" order="90"
      label="action.view.review" icon="/icons/start_workflow.png">
      <category>POPUP</category>
      <filter-id>jbpm-process</filter-id>
      <filter-id>mutable_document</filter-id>
    </action>

    <action id="POPUP_DOCUMENT_LOCK" link="javascript:doLock" order="110"
      label="command.lock" icon="/icons/lock.gif">
      <category>POPUP</category>
      <filter-id>mutable_document</filter-id>
      <filter id="popup_can_lock_doc">
        <rule grant="true">
          <permission>Write</permission>
          <condition>#{lockActions.getCanLockDoc(document)}</condition>
        </rule>
        <rule grant="false">
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>

    <action id="POPUP_DOCUMENT_UNLOCK" link="javascript:doUnlock" order="130"
      label="command.unlock" icon="/icons/lock.gif">
      <category>POPUP</category>
      <filter-id>mutable_document</filter-id>
      <filter id="popup_can_unlock_doc">
        <rule grant="true">
          <condition>#{lockActions.getCanUnlockDoc(document)}</condition>
        </rule>
        <rule grant="false">
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>

    <action id="POPUP_sendEmail" link="javascript:doSendEmail" order="150"
      label="action.email.document" icon="/icons/mail.gif">
      <category>POPUP</category>
      <filter-id>not_folder</filter-id>
    </action>

    <!-- Actions for the document lock/unlock -->

    <action id="DOCUMENT_LOCK" link="#{lockActions.lockCurrentDocument}"
      label="command.lock" icon="">
      <category>EDIT_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_lock</filter-id>
    </action>

    <action id="DOCUMENT_UNLOCK" link="#{lockActions.unlockCurrentDocument}"
      label="command.unlock" icon="">
      <category>EDIT_ACTIONS</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>can_unlock</filter-id>
    </action>

    <!-- live edit new document creation links -->

    <action id="le_create_msword" type="bare_link"
      link="#{nxd:liveCreateUrl('application/msword', 'File', 'file', 'content', 'filename')}"
      order="40" label="action.liveedit.create.msword" icon="/icons/word.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_msword</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <action id="le_create_msexcel" type="bare_link"
      link="#{nxd:liveCreateUrl('application/vnd.ms-excel', 'File', 'file', 'content', 'filename')}"
      order="50" label="action.liveedit.create.msexcel" icon="/icons/xls.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_msexcel</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <action id="le_create_mspowerpoint" type="bare_link"
      link="#{nxd:liveCreateUrl('application/vnd.ms-powerpoint', 'File', 'file', 'content', 'filename')}"
      order="60" label="action.liveedit.create.mspowerpoint" icon="/icons/ppt.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_mspowerpoint</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <action id="le_create_odwriter" type="bare_link"
      link="#{nxd:liveCreateUrl('application/vnd.oasis.opendocument.text', 'File', 'file', 'content', 'filename')}"
      order="80" label="action.liveedit.create.writer" icon="/icons/odt.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_odwriter</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <action id="le_create_odcalc" type="bare_link"
      link="#{nxd:liveCreateUrl('application/vnd.oasis.opendocument.spreadsheet', 'File', 'file', 'content', 'filename')}"
      order="100" label="action.liveedit.create.calc" icon="/icons/ods.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_odcalc</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <action id="le_create_odimpress" type="bare_link"
      link="#{nxd:liveCreateUrl('application/vnd.oasis.opendocument.presentation', 'File', 'file', 'content', 'filename')}"
      order="120" label="action.liveedit.create.impress" icon="/icons/odp.png">
      <category>LIVEEDIT_CREATE_ACTIONS</category>
      <filter-id>is_le_create_odimpress</filter-id>
      <properties>
        <property name="cacheLink">true</property>
      </properties>
    </action>

    <!-- Local Configuration -->
    <action id="TAB_LOCAL_CONFIGURATION" link="/incl/tabs/local_configuration.xhtml"
      order="70" label="action.view.local.configuration" icon="/icons/file.gif">
      <category>TAB_MANAGE_sub_tab</category>
      <filter-id>has_local_configuration_available</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <!-- actions on document create and edit pages -->

    <action id="CREATE_DOCUMENT" link="#{documentActions.saveDocument}"
      order="0" label="command.create">
      <category>CREATE_DOCUMENT_FORM</category>
      <filter-id>is_not_creating_workspace</filter-id>
    </action>

    <action id="CREATE_WORKSPACE" link="#{documentTemplatesActions.createDocumentFromTemplate}"
      order="0" label="command.create">
      <category>CREATE_DOCUMENT_FORM</category>
      <filter-id>is_creating_workspace</filter-id>
    </action>

    <action id="CANCEL_DOCUMENT_CREATION" link="#{navigationContext.goBack()}"
      order="50" label="command.cancel" immediate="true">
      <category>CREATE_DOCUMENT_FORM</category>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="EDIT_CURRENT_DOCUMENT" link="#{documentActions.updateCurrentDocument}"
      order="0" label="command.save">
      <category>EDIT_DOCUMENT_FORM</category>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="EDIT_CURRENT_DOCUMENT_AND_STAY" enabled="false"
      link="#{documentActions.updateDocument(currentDocument, true)}" order="10"
      label="command.save.and.stay">
      <category>EDIT_DOCUMENT_FORM</category>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <!-- end of actions on document create and edit pages -->

    <!-- footer links -->

    <action id="footer_contact_us"
      link="//www.nuxeo.com/about/contact?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="label.footer.contactUs" order="10" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_blogs"
      link="//www.nuxeo.com/blog?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="label.footer.blogs" order="20" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_community"
      link="//community.nuxeo.com/?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="label.footer.community" order="30" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_answers"
      link="//answers.nuxeo.com/?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="label.footer.answers" order="40" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_documentation"
      link="//doc.nuxeo.com/?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="label.footer.documentation" order="50" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_twitter"
      link="//twitter.com/nuxeo/?utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="Twitter" order="60" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="styleClass">twitt</property>
        <property name="labelStyleClass">footerLabel</property>
        <property name="target">_blank</property>
      </properties>
    </action>

    <action id="footer_linkedin"
      link="//www.linkedin.com/groupRegistration?gid=43314&amp;utm_source=dm&amp;utm_medium=pages-footer&amp;utm_campaign=products"
      label="LinkedIn" order="70" type="bare_link">
      <category>FOOTER</category>
      <properties>
        <property name="styleClass">linkedin</property>
        <property name="labelStyleClass">footerLabel</property>
        <property name="target">_blank</property>
      </properties>
    </action>

    <!-- end of footer links -->

    <action id="bulkImportDocuments" order="0" label="label.bulk.import.documents"
      type="fancybox">
      <category>IMPORT_ACTIONS</category>
      <properties>
        <property name="include">/incl/bulk_import_box.xhtml</property>
        <property name="dropContext">IMPORT_DOCUMENTS</property>
        <property name="autoDimensions">false</property>
        <property name="width">70%</property>
        <property name="height">95%</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="view">
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="create">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>TemplateRoot</type>
        <type>Section</type>
        <type>Folder</type>
        <type>OrderedFolder</type>
      </rule>
      <rule grant="false">
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),document).size()==0}
        </condition>
      </rule>
    </filter>

    <filter id="importFile">
      <rule grant="true">
        <permission>AddChildren</permission>
        <facet>Folderish</facet>
        <type>Workspace</type>
        <type>Folder</type>
        <type>OrderedFolder</type>
        <condition>
          #{typeManager.getAllowedSubTypes(document.getType(),
          document).size()
          > 0}
        </condition>
      </rule>
    </filter>

    <filter id="edit">
      <rule grant="false">
        <type>Root</type>
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="user_canedit">
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="workspace_edit">
      <rule grant="true">
        <type>Domain</type>
        <type>WorkspaceRoot</type>
        <type>Workspace</type>
        <permission>Write</permission>
      </rule>
    </filter>

    <filter id="metadata_edit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="true">
        <permission>Write</permission>
      </rule>
    </filter>

    <!-- deprecated, use mutable_document instead -->
    <filter id="cannotEdit">
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Write</permission>
      </rule>
      <rule grant="false">
        <condition>!document.isProxy()</condition>
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="anonymous">
      <rule grant="true">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="not_anonymous">
      <rule grant="false">
        <condition>#{currentUser.anonymous}</condition>
      </rule>
    </filter>

    <filter id="not_transient_user">
      <rule grant="false">
        <condition>#{currentUser.transient}</condition>
      </rule>
    </filter>

    <filter id="view_content">
      <rule grant="true">
        <permission>ReadChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="valid_for_publish">
      <rule grant="true">
        <condition>
          document.getCurrentLifeCycleState().equals("approved")
        </condition>
      </rule>
    </filter>

    <filter id="manage">
      <rule grant="true">
        <permission>Manage everything</permission>
      </rule>
    </filter>

    <filter id="not_review_documents">
      <rule grant="false">
        <condition>
          document.getCurrentLifeCycleState().equals("review")
        </condition>
      </rule>
    </filter>

    <filter id="mutable_document">
      <rule grant="false">
        <facet>Immutable</facet>
      </rule>
      <rule grant="false">
        <type>Root</type>
      </rule>
      <rule grant="false">
        <condition>
          document.isTrashed()
        </condition>
      </rule>
    </filter>

    <filter id="updatable_main_blob">
      <rule grant="true">
        <condition>#{documentActions.canUpdateMainBlob}</condition>
      </rule>
    </filter>

    <filter id="delete_content">
      <rule grant="true">
        <permission>RemoveChildren</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="rights">
      <rule grant="true">
        <permission>WriteSecurity</permission>
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="currentWorkListIsNotEmpty">
      <rule grant="false">
        <condition>#{clipboardActions.workListEmpty}</condition>
      </rule>
    </filter>

    <filter id="canPasteCurrentWorkList">
      <rule grant="true">
        <condition>#{clipboardActions.canPasteWorkList}</condition>
      </rule>
    </filter>

    <filter id="canMoveWorkingList">
      <rule grant="true">
        <condition>#{clipboardActions.canMoveWorkingList}</condition>
      </rule>
    </filter>

    <filter id="canCopyFromCurrentSelection">
      <rule grant="true">
        <condition>#{clipboardActions.canCopy}</condition>
      </rule>
    </filter>

    <filter id="canEditCurrentSelection">
      <rule grant="true">
        <condition>#{bulkEditActions.canEdit}</condition>
      </rule>
    </filter>

    <filter id="can_lock">
      <rule grant="true">
        <permission>Write</permission>
        <condition>#{lockActions.canLockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="can_unlock">
      <rule grant="true">
        <condition>#{lockActions.canUnlockCurrentDoc}</condition>
      </rule>
      <rule grant="false">
        <facet>Folderish</facet>
      </rule>
    </filter>

    <filter id="only_for_manager">
      <rule grant="true">
        <condition>#{userSession.administrator}</condition>
      </rule>
    </filter>

    <filter id="hasAttachedFiles">
      <rule grant="true">
        <schema>files</schema>
      </rule>
    </filter>

    <filter id="type_section">
      <rule grant="false">
        <type>Section</type>
      </rule>
    </filter>

    <filter id="denyFilesTab">
      <rule grant="false">
        <type>WebSite</type>
        <type>WebPage</type>
        <type>BlogSite</type>
        <type>BlogPost</type>
      </rule>
    </filter>

    <filter id="inSection">
      <rule grant="true">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="outSection">
      <rule grant="false">
        <type>Section</type>
        <type>SectionRoot</type>
      </rule>
    </filter>

    <filter id="not_readonly">
      <rule grant="true">
        <condition>#{notReadOnly}</condition>
      </rule>
    </filter>

    <filter id="orderable">
      <rule grant="true">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="not_orderable">
      <rule grant="false">
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToTop">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToTop}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveUp">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveUp}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveDown">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveDown}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="canMoveToBottom">
      <rule grant="true">
        <condition>#{orderableDocumentActions.canMoveToBottom}</condition>
        <facet>Orderable</facet>
      </rule>
    </filter>

    <filter id="has_local_configuration_available">
      <rule grant="false">
        <condition>
          #{webActions.getActionsList('LOCAL_CONFIGURATION').isEmpty()}
        </condition>
      </rule>
      <rule grant="true">
        <permission>Manage everything</permission>
        <facet>SuperSpace</facet>
      </rule>
    </filter>

    <filter id="is_creating_workspace">
      <rule grant="true">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

    <filter id="is_not_creating_workspace">
      <rule grant="false">
        <condition>#{changeableDocument.type == 'Workspace'}</condition>
      </rule>
    </filter>

    <!-- LiveEdit filter -->
    <filter id="is_le_create_msword">
      <rule grant="true">
        <condition>#{msword_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_msexcel">
      <rule grant="true">
        <condition>#{msexcel_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_mspowerpoint">
      <rule grant="true">
        <condition>#{mspowerpoint_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odwriter">
      <rule grant="true">
        <condition>#{ootext_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odcalc">
      <rule grant="true">
        <condition>#{oocalc_liveeditable}</condition>
      </rule>
    </filter>

    <filter id="is_le_create_odimpress">
      <rule grant="true">
        <condition>#{oopresentation_liveeditable}</condition>
      </rule>
    </filter>

  </extension>

</component>